/**
 * contactdepartment服务
 *
 * @author sxf
 * @email sxf02615@163.com
 * @date 2025/1/15
 */
package com.sxf.crm.service;


import com.sxf.crm.entity.Contact;
import com.sxf.crm.entity.ContactDepartment;
import com.sxf.crm.entity.Department;

import java.util.List;

public interface ContactDepartmentService {
    ContactDepartment createContactDepartment(Contact contact, Department department);
    List<ContactDepartment> getByContactId(Long contactId);
    List<ContactDepartment> getByDepartmentId(Long departmentId);
    void deleteContactDepartment(Long contactId, Long departmentId);
    
    List<ContactDepartment> createContactDepartments(Contact contact, List<Department> departments);
}
